<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    * {
      padding: 0;
      margin: 0;
    }
  </style>
</head>

<body>  
  <div id="app">
    <hellword></hellword>
    <helldom></helldom>
    <hellerroy></hellerroy>
  </div>
  <script src="../js/vue.js"></script>
  <script>
    let hellword = {
      data() {
        return {
          "hells": 0
        }
      },
      "methods": {
        add() {
          this.hells++;
        }
      },
      "template": '<button @click="add">{{hells}}</button>'
    };
    let helldom = {
      data() {
        return {
          "msg": "这是一个提示信息了"
        }
      },
      "methods": {

      },
      "template": `<div>{{msg}}</div>`
    };
    let hellerroy = {
      data() {
        return {
          "msg": "这是错误的信息的了"
        }
      },
      "methods": {},
      "template": `<button>{{msg}}</button>`
    };
    const vm = new Vue({
      "el": "#app",
      "data": {},
      mounted() {},
      updated() {},
      "methods": {},
      "directives": {},
      "computed": {},
      "watch": {},
      "filters": {},
      "components": {
        // 这是es6的写法，当名称和值相同时，则使用一个就好了
        hellword,
        helldom,
        hellerroy
      }
    });
  </script>


</body>

</html>